import { getTemporaryInfo } from "../common";

export function getEnum(code) {
  const arr =
    getTemporaryInfo("DICTIONARY_DATA").filter((item) => item.value === code) ||
    [];
  return arr ? (arr[0].children ? arr[0].children : []) : [];
}
